﻿using System.Web.Configuration;

namespace EnetaMvc.Web.Security
{
    public class AuthConfig
    {
        static public string LiveLoginUrl
        {
            get
            {
                return string.Format("{0}://login.live.com/wlogin.srf?appid={1}&alg={2}&lc=1061&appctx=", WebConfigurationManager.AppSettings["WLA_ApplicationMode"], WebConfigurationManager.AppSettings["WLA_ApplicationId"], WebConfigurationManager.AppSettings["WLA_ApplicationAlgorithm"]);
            }
        }

        static public string ProfileSiteUrl
        {
            get
            {
                return WebConfigurationManager.AppSettings["WLA_ProfileSiteUrl"];
            }
        }

        static public string ProfileList
        {
            get
            {
                return WebConfigurationManager.AppSettings["WLA_ProfileList"];
            }
        }

        static public string ApplicationId
        {
            get
            {
                return WebConfigurationManager.AppSettings["WLA_ApplicationId"];

            }
        }

        static public string ApplicationAlgorithm
        {
            get
            {
                return WebConfigurationManager.AppSettings["WLA_ApplicationAlgorithm"];
            }
        }

        static public string ApplicationKey
        {
            get
            {
                return WebConfigurationManager.AppSettings["WLA_ApplicationKey"];
            }
        }

        static public string LockedUrl
        {
            get
            {
                return WebConfigurationManager.AppSettings["WLA_LockedUrl"];
            }
        }
    }

}